package com.antd.admin.server.mapper;

import com.antd.admin.api.dto.UserDTO;
import com.antd.admin.api.entity.SysUser;
import com.antd.common.data.datascope.DataScope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 子丶沫
 * @since 2020-11-18
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 分页查询用户
     * @param page
     * @param userDTO
     * @param dataScope
     * @return
     */
    IPage<SysUser> findUserVoPage(IPage<SysUser> page, @Param("param")UserDTO userDTO, DataScope dataScope);
}
